package Library.dbcommands;

import java.awt.print.Book;
import java.util.ArrayList;

import org.jboss.security.annotation.Authorization;

import Libarary.items.SearchedBook;
import Libarary.items.User;

public interface IDBCommands {

	/**
	 * 
	 * @return ArrayList of all users from database
	 * @author Sansarova
	 */
	ArrayList<User> getAllUser();
	/**
	 * 
	 * @return ArrayList of all books from database
	 * @author Sansarova
	 */
	ArrayList<SearchedBook> getAllBooks();
	/**
	 * 
	 * @param User u
	 * @return true-if user is successfully saved in data base, false-if user isn't successfully saved 
	 * @author Sansarova
	 */
	boolean addUser(User u);
	
	ArrayList<SearchedBook> getBooksWhereTitleIs(String searchString);
}
